package com.hxl.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

//部门实体类
@Component
public class Dept {
    private int id;
    private String deptName;
    private String pinName;
    private String deptCode;
    private int superiorDeptId;
    private int deptType;
    private String deptBbreviation;
    private String addr;
    private String contact;
    private String tel;
    private String remark;
    private int stat;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPinName() {
        return pinName;
    }

    public void setPinName(String pinName) {
        this.pinName = pinName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public int getSuperiorDeptId() {
        return superiorDeptId;
    }

    public void setSuperiorDeptId(int superiorDeptId) {
        this.superiorDeptId = superiorDeptId;
    }

    public int getDeptType() {
        return deptType;
    }

    public void setDeptType(int deptType) {
        this.deptType = deptType;
    }

    public String getDeptBbreviation() {
        return deptBbreviation;
    }

    public void setDeptBbreviation(String deptBbreviation) {
        this.deptBbreviation = deptBbreviation;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStat() {
        return stat;
    }

    public void setStat(int stat) {
        this.stat = stat;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", deptName='" + deptName + '\'' +
                ", pinName='" + pinName + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", superiorDeptId=" + superiorDeptId +
                ", deptType=" + deptType +
                ", deptBbreviation='" + deptBbreviation + '\'' +
                ", addr='" + addr + '\'' +
                ", contact='" + contact + '\'' +
                ", tel='" + tel + '\'' +
                ", remark='" + remark + '\'' +
                ", stat='" + stat + '\'' +
                ", insertTime=" + insertTime +
                '}';
    }
}
